package com.boo.app;


import android.app.*;
import android.content.*;
import android.content.res.*;
import android.os.*;
import android.widget.*;


public class appAlarm extends TabActivity {
    
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.alarm);


        Resources res = getResources(); // Resource object to get Drawables
        TabHost tabHost = getTabHost();  // The activity TabHost
        TabHost.TabSpec spec;  // Resusable TabSpec for each tab
        Intent intent;  // Reusable Intent for each tab


        // Create an Intent to launch an Activity for the tab (to be reused)
        intent = new Intent().setClass(this, ye.class);


        // Initialize a TabSpec for each tab and add it to the TabHost
        spec = tabHost.newTabSpec("예방접종").setIndicator("예방접종",
                          res.getDrawable(R.drawable.tab_ye))
                      .setContent(intent);
        tabHost.addTab(spec);


        // Do the same for the other tabs
        intent = new Intent().setClass(this, term.class);
        spec = tabHost.newTabSpec("주기알람").setIndicator("주기알람",
                          res.getDrawable(R.drawable.tab_term))
                      .setContent(intent);
        tabHost.addTab(spec);


        intent = new Intent().setClass(this, other.class);
        spec = tabHost.newTabSpec("기타").setIndicator("기타",
                          res.getDrawable(R.drawable.si))
                      .setContent(intent);
        tabHost.addTab(spec);


        tabHost.setCurrentTab(2);
    }
}
